Matthias Clasen [Tue, 18 Aug 2009 02:19:24 +0000 (22:19 -0400)]
Updates
Javier Jardón [Mon, 17 Aug 2009 15:55:09 +0000 (17:55 +0200)]
Support silent build rules with automake 1.11 (GnomeBug:591998)
Support silent build rules, requires at least automake-1.11.
Enable by either passing --enable-silent-rules to configure or
passing V=0 to make.
Matthias Clasen [Mon, 17 Aug 2009 17:38:06 +0000 (13:38 -0400)]
Handle accelerators involving virtual modifiers better
The previous code would trigger on an unmodified 'S' key for a
'Super+S' accel. The current code avoids that at the cost of breaking
combinations like 'Mod4+Super+S' which are too exotic to worry about...
Bug 591526
Matthias Clasen [Mon, 17 Aug 2009 13:16:12 +0000 (09:16 -0400)]
Tiny docs improvement
Mention that gdk_xid_table_lookup may return NULL. Bug 591432.
Paolo Borelli [Mon, 17 Aug 2009 15:04:30 +0000 (17:04 +0200)]
Bug 592003 - Shift+click should always modify selection
Shift-click inside an existing selection reduces the selection to the
range from the insert mark to the clicked point instead of removing the
selection. This makes GtkTextView more consistent with GtkEntry.
Alexander Larsson [Mon, 17 Aug 2009 14:59:47 +0000 (16:59 +0200)]
Don't crash on NULL parent
The parent window can be NULL, check for that before dereferencing.
Seán de Búrca [Mon, 17 Aug 2009 09:17:30 +0000 (03:17 -0600)]
Updated Irish translation
Alexander Larsson [Sun, 16 Aug 2009 20:32:58 +0000 (22:32 +0200)]
Remove unused variable
Alexander Larsson [Sun, 16 Aug 2009 20:24:00 +0000 (22:24 +0200)]
Fix gdk_window_get_geometry for native children with non-native parent
gdk_window_get_geometry calls the native function for all non-native
windows. This returns coords relative to the native parent. We need
to convert this to be relative to the client side parent.
This fixes DnD coordinates in firefox (bug 588437).
Paolo Borelli [Fri, 14 Aug 2009 09:33:47 +0000 (11:33 +0200)]
Fix memory leaks when using add_objects
Paolo Borelli [Thu, 13 Aug 2009 22:09:46 +0000 (00:09 +0200)]
Fix memory leaks in unit tests
Paolo Borelli [Thu, 13 Aug 2009 22:08:09 +0000 (00:08 +0200)]
Fix duplicated id detection in gtkbuilder
Fix memory handling of duplicated id hashtable and add unit test
Alexander Larsson [Fri, 14 Aug 2009 10:09:02 +0000 (12:09 +0200)]
Always queue antiexposes after flushing outstanding moves
If antiexposures are queued and then we do the outstanding moves
we will queue translations that will affect incomming exposes
wrongly wrt the antiexposure. So, make sure we process the outstanding
moves before doing the antiexposure.
Additionally this commit adds a bunch of comments about how the
expose handling works and fixes a small bug that made us always
flush outstanding moves a little to early than necessary.
Alexander Larsson [Fri, 14 Aug 2009 09:20:12 +0000 (11:20 +0200)]
Fix type mismatch warnings
Cast g_list_foreach args to GFunc.
Tor Lillqvist [Thu, 13 Aug 2009 19:49:35 +0000 (22:49 +0300)]
Initialize missing methods on Windows
Set the input_window_destroy and input_window_crossing methods of the
GdkWindowImplIface on Windows. Add implementation of
_gdk_input_crossing_event that is mostly dummy, though.
Cody Russell [Thu, 13 Aug 2009 16:22:57 +0000 (11:22 -0500)]
Add gtk_widget_set_allocation to gtkwidget.h and gtk.symbols
Cody Russell [Thu, 13 Aug 2009 16:21:15 +0000 (11:21 -0500)]
Make the allocation parameter const
Cody Russell [Thu, 13 Aug 2009 14:57:25 +0000 (09:57 -0500)]
Add widget->allocation setter method
Add gtk_widget_set_allocation() to be used by size_allocate() methods,
since widget->allocation is now sealed. Bug #585211
Alexander Larsson [Thu, 13 Aug 2009 15:00:00 +0000 (17:00 +0200)]
Make _gdk_window_process_updates_recurse reentrancy safe
Apps may change the window hierarchy while recursing over it by
destroying windows from the expose event handler. We need to copy
the children list and ref all the children while recursing.
This fixes some crashers in gedit (bug #589367, bug #591434)
Alexander Larsson [Thu, 13 Aug 2009 14:48:07 +0000 (16:48 +0200)]
Fix leaks of clip region and outstanding moves
We're never freeing these, do so when destroying.
Fixes bug 589877
Matthias Clasen [Thu, 13 Aug 2009 13:45:04 +0000 (09:45 -0400)]
Don't return uninitialized pointers
This was giving me segfaults somewhere else.
Alexander Larsson [Thu, 13 Aug 2009 12:25:35 +0000 (14:25 +0200)]
Ensure that queue_translation is paired with the right X operation
The X11 queue_translation operation uses NextRequest to get the serial
of the XCopyArea operation where the translation should end. However,
if the gc passed to gdk_draw_drawable has a non-flushed clip region
(which it commonly has now for the window clipping) then the next
operation will be the GC flush, not the XCopyArea.
To handle this right we now pass in the GC to be used to
queue_translation and ensure that it is flushed before calling
NextRequest().
Alexander Larsson [Thu, 13 Aug 2009 11:35:58 +0000 (13:35 +0200)]
Clarify comment
Alexander Larsson [Thu, 13 Aug 2009 11:32:17 +0000 (13:32 +0200)]
Invalidate old source in gdk_window_move_region
When we copy the region we need to also re-expose the areas of
the copied region that was not also in the destination.
And, we need to do this invalidation after the move, as the
move also moves any invalid area.
Alexander Larsson [Thu, 13 Aug 2009 11:13:47 +0000 (13:13 +0200)]
Modify window system exposes wrt outstanding moves
If there are outstanding moves in an area that intersects
the source of an outstanding move we need to move the invalid
area correspondingly, otherwise we will expose the wrong area
as the outstanding move copy will happen before we expose
the invalid area.
Alexander Larsson [Thu, 13 Aug 2009 11:07:13 +0000 (13:07 +0200)]
Check for GraphicsExpose too in expose_serial_predicate
GraphicsExpose cause invalidation too, so we need to look for such
events in addition to normal Expose events.
Alexander Larsson [Thu, 13 Aug 2009 11:04:28 +0000 (13:04 +0200)]
Don't un-invalidate area that will be immediately invalidated again.
When moving an area we move any invalid region in this area to the
new place, but there really is no need to remove the old invalid
area as it would just be invalidated again (being newly exposed).
Alexander Larsson [Thu, 13 Aug 2009 10:54:31 +0000 (12:54 +0200)]
Remove C++ comment
Alexander Shopov [Thu, 13 Aug 2009 09:05:10 +0000 (12:05 +0300)]
Updated Bulgarian translation
Daniel Nylander [Thu, 13 Aug 2009 08:31:54 +0000 (10:31 +0200)]
Updated Swedish translation
Daniel Nylander [Thu, 13 Aug 2009 08:29:36 +0000 (10:29 +0200)]
Updated Swedish translation
Daniel Nylander [Thu, 13 Aug 2009 08:08:20 +0000 (10:08 +0200)]
Updated Swedish translation
Alexander Shopov [Thu, 13 Aug 2009 04:33:11 +0000 (07:33 +0300)]
Updated Bulgarian translation
Alexander Shopov [Thu, 13 Aug 2009 04:15:50 +0000 (07:15 +0300)]
Updated Bulgarian translation
Leonardo Ferreira Fontenelle [Thu, 13 Aug 2009 02:02:15 +0000 (23:02 -0300)]
Updated Brazilian Portuguese translation.
Benjamin Otte [Thu, 6 Aug 2009 14:25:20 +0000 (16:25 +0200)]
Bug 590959 - Set child_has_focus flag properly (second try)
Previously, this flag wasn't cleared properly when the notebook lost
focus, but only when the notebook was focussed again later.
As this flag is only used to advance correctly focus pages by grabbing
focus to the new page after switching the page, this is not good.
In particular, it can cause a focus grab when programmatically switching
the notebook page and the focus is inside a completely different widget.
A previous attempt at this fix in
6e0af6c25225440263792a3cbecd8f4301e3def5 has been reverted in
dfe0c8c0ca4823c77fa71b0048f6454958170b4e because it didn't work
correctly.
Matthias Clasen [Tue, 11 Aug 2009 19:07:15 +0000 (15:07 -0400)]
Bump version
Matthias Clasen [Tue, 11 Aug 2009 19:06:02 +0000 (15:06 -0400)]
2.17.7
Matthias Clasen [Tue, 11 Aug 2009 18:19:35 +0000 (14:19 -0400)]
Make setting the root cursor work again
This used to work, and CSW broke it. Bug 591462, 589844.
Matthias Clasen [Tue, 11 Aug 2009 18:18:13 +0000 (14:18 -0400)]
Fix make check
Matthias Clasen [Tue, 11 Aug 2009 16:47:09 +0000 (12:47 -0400)]
Updates
Alexander Larsson [Tue, 11 Aug 2009 13:41:23 +0000 (15:41 +0200)]
Fix clearing of window background for some transparent notification icons
This extends the usage of the native clear region call such that its
called also for windows that have parent relative background all the
way up to a native window. That way we get true background relative
background clearing even to a foreign parent, which means that some
transparent notification icons look right again.
Alexander Larsson [Tue, 11 Aug 2009 10:58:48 +0000 (12:58 +0200)]
Implement fallback for old draw_drawable vfunc
GdkDrawable->draw_drawback was replaced with a new vfunc
draw_drawback_with_src that is now called from gdk_draw_drawable.
However, some code seems to call the vfunc directly (see bug #591288),
so make it chain to the new call.
Note that such direct vfunc calls are a bad idea and won't work for all
cases.
Alexander Larsson [Tue, 11 Aug 2009 09:30:55 +0000 (11:30 +0200)]
Show/Hide native window when updating viewable
This moves the native show/hide calls to the generic code
for calculating viewable rather than in its own separate code
called from gdk_window_show/hide. This simplifies the code a bit,
but most significantly it means things are correctly shown when
they become viewable for other reasons than a show/hide call.
For instance, this fixes bug 590442 (gvim embedding) where the
toplevel GtkPlug is mapped by the embedder and we didn't previously
pick up that the native children became viewable and should be shown.
Marek Kasik [Tue, 11 Aug 2009 07:24:18 +0000 (09:24 +0200)]
Print when Enter pressed in certain GtkEntries of the print dialog
Print when Enter pressed in Name entry or Command Line entry in the
print dialog (#564695).
Add gtk_printer_option_set_activates_default() function and
gtk_printer_option_get_activates_default() function to control
behaviour of GtkPrinterOptionWidget.
Ivar Smolin [Tue, 11 Aug 2009 06:29:08 +0000 (09:29 +0300)]
Updating Estonian translation
Inaki Larranaga Murgoitio [Mon, 10 Aug 2009 17:59:25 +0000 (19:59 +0200)]
Updated Basque language
Antón Méixome [Mon, 10 Aug 2009 15:19:30 +0000 (17:19 +0200)]
Updated Galician translation
Inaki Larranaga Murgoitio [Mon, 10 Aug 2009 16:50:51 +0000 (18:50 +0200)]
Updated Basque language
Inaki Larranaga Murgoitio [Mon, 10 Aug 2009 16:49:34 +0000 (18:49 +0200)]
Updated Basque language
Alexander Larsson [Mon, 10 Aug 2009 13:35:33 +0000 (15:35 +0200)]
Don't invalidate unnecessary areas on raise
We used to invalidate the whole window when raised, but this is
unnecessary much, we now just invalidate the visible area minus the
previously visible area.
This also fixes a problem where expose calling raise caused a loop (#588438)
Alexander Larsson [Mon, 10 Aug 2009 12:27:53 +0000 (14:27 +0200)]
Remove old comment about guffaw scrolling
We no longer use guffaw scrolling since the client side windows
branch was merged.
Alexander Larsson [Mon, 10 Aug 2009 12:08:37 +0000 (14:08 +0200)]
Don't ever invalidate the root window
This never worked before csw since the root window is never
set as IS_MAPPED, but with the new viewable check (which is
true for the root window) we could erronously queue exposes
on the root window.
This happened unexpectedly in bug 589369, where metacity
got a GraphicsExpose event on the root window due to some
graphics operation, queueing an expose which would be handled
by clearing that area. That is fixed with this commit.
Inaki Larranaga Murgoitio [Mon, 10 Aug 2009 12:35:05 +0000 (14:35 +0200)]
Updated Basque language
Marek Kasik [Mon, 10 Aug 2009 09:37:32 +0000 (11:37 +0200)]
Increment page sequence before print of the page, not after
When printing, increment page sequence before rendering of the page,
not after (#590084).
In opposite case it runs "end_page" function with wrong parameters when
drawing a page in another thread.
Javier Jardón [Sun, 9 Aug 2009 10:01:03 +0000 (12:01 +0200)]
Remove some unused variables (GnomeBug:591218)
Matthias Clasen [Sun, 9 Aug 2009 02:43:16 +0000 (22:43 -0400)]
Correct a doc comment
Add 'papi' to the list of possible print backends, and mention 'file'
instead of 'pdf'.
Matthias Clasen [Fri, 7 Aug 2009 16:00:10 +0000 (12:00 -0400)]
Avoid some gratitious behaviour changes
Go back to allowing a lot of the WM-level functions on foreign windows,
since we used to allow that before csw. Fixes bug 589732.
Khaled Hosny [Sat, 8 Aug 2009 18:32:20 +0000 (21:32 +0300)]
Updated Arabic translation
Seán de Búrca [Sat, 8 Aug 2009 08:23:01 +0000 (02:23 -0600)]
Updated Irish translation
Jorge González [Fri, 7 Aug 2009 17:54:02 +0000 (19:54 +0200)]
Updated Spanish translation
Jorge González [Fri, 7 Aug 2009 17:29:25 +0000 (19:29 +0200)]
Updated Spanish translation
Jorge González [Fri, 7 Aug 2009 16:51:12 +0000 (18:51 +0200)]
Updated Spanish translation
Xan Lopez [Fri, 7 Aug 2009 12:39:49 +0000 (15:39 +0300)]
Revert "Bug 590959 - Set child_has_focus flag properly"
This reverts commit
6e0af6c25225440263792a3cbecd8f4301e3def5.
The patch seems to break focus handling in some applications, like
Epiphany.
Michael Natterer [Fri, 7 Aug 2009 12:48:00 +0000 (14:48 +0200)]
Bug 69872 – GTK_WIDGET_SET_FLAGS should be deprecated
Add gtk_widget_has_grab() as replacement for GTK_WIDGET_HAS_GRAB().
Seán de Búrca [Fri, 7 Aug 2009 08:27:37 +0000 (02:27 -0600)]
Updated Irish translation
Carlos Garcia Campos [Wed, 5 Aug 2009 18:20:05 +0000 (20:20 +0200)]
Add gtk_print_operation_get_n_pages_to_print()
It returns the number of pages that will be printed to allow tracking
the progress of a print operation. Fixes bgo#582964.
Seán de Búrca [Fri, 7 Aug 2009 07:17:14 +0000 (01:17 -0600)]
Updated Irish translation
Michael Natterer [Fri, 7 Aug 2009 06:53:32 +0000 (08:53 +0200)]
Bug 69872 – GTK_WIDGET_SET_FLAGS should be deprecated
Add gtk_widget_get_visible(). For symmetry reasons and for convenience
when a widget's visibility state is available as a boolean condition,
also add gtk_widget_set_visible() (which simply calls show()/hide()).
Matthias Clasen [Fri, 7 Aug 2009 04:10:43 +0000 (00:10 -0400)]
Fix a logic error in gdk_window_set_title on OS X
Also fix a similar error in gdk_window_set_transient_for.
This fixes bug 589738
Matthias Clasen [Fri, 7 Aug 2009 04:10:43 +0000 (00:10 -0400)]
Fix a logic error in gdk_window_set_title on OS X
This fixes bug 589738
Matthias Clasen [Fri, 7 Aug 2009 03:56:30 +0000 (23:56 -0400)]
Add a GtkIconView::item-padding property
The property can be used to fine-tune who much space each column
needs. See bug 586100.
Matthias Clasen [Fri, 7 Aug 2009 03:52:18 +0000 (23:52 -0400)]
Emit GtkAssistant::apply before computing the next step
This fixes bug 589745.
Matthias Clasen [Fri, 7 Aug 2009 03:49:02 +0000 (23:49 -0400)]
Fix a typo
This was reported in bug 586808.
Matthias Clasen [Fri, 7 Aug 2009 03:44:00 +0000 (23:44 -0400)]
Fix a typo
This was reported in bug 586347.
Pascal Terjan [Fri, 31 Jul 2009 16:27:51 +0000 (18:27 +0200)]
Update tooltip if no removable one is selected
Benjamin Otte [Thu, 6 Aug 2009 14:25:20 +0000 (16:25 +0200)]
Bug 590959 - Set child_has_focus flag properly
Previously, this flag wasn't cleared properly when the notebook lost
focus, but only when the notebook was focussed again later.
As this flag is only used to advance correctly focus pages by grabbing
focus to the new page after switching the page, this is not good.
In particular, it can cause a focus grab when programmatically switching
the notebook page and the focus is inside a completely different widget.
Marek Kasik [Thu, 6 Aug 2009 07:11:31 +0000 (09:11 +0200)]
Check for details request before print
Checks for details request before sending a job to a printer.
Shows busy state indication (cursor + status field).
This avoids printing to wrong printer (bug #576601).
Marek Kasik [Wed, 5 Aug 2009 08:34:27 +0000 (10:34 +0200)]
Get default cover sheets from each printer separately
Fixes bug #590309.
Add default_cover_before string and default_cover_after string
to GtkPrinterCups and fill it when getting list of printers.
Jorge González [Tue, 4 Aug 2009 17:31:33 +0000 (19:31 +0200)]
Updated Spanish translation
Jorge González [Tue, 4 Aug 2009 17:31:27 +0000 (19:31 +0200)]
Updated Spanish translation
Ivar Smolin [Tue, 4 Aug 2009 07:23:58 +0000 (10:23 +0300)]
Updating Estonian translation
Ivar Smolin [Mon, 3 Aug 2009 17:48:29 +0000 (20:48 +0300)]
Updating Estonian translation
Marek Kasik [Mon, 3 Aug 2009 09:25:19 +0000 (11:25 +0200)]
Add SVG support to GtkPrintBackendFile
This add support for printing to SVG 1.2 files (#357655).
Denis Arnaud [Fri, 31 Jul 2009 23:26:38 +0000 (01:26 +0200)]
Updated breton translation
Kjartan Maraas [Sun, 2 Aug 2009 22:21:24 +0000 (00:21 +0200)]
Updated Norwegian bokmål translation.
Sam Thursfield [Sun, 2 Aug 2009 07:40:13 +0000 (10:40 +0300)]
Make gdk-pixbuf-csource work on Windows also in the build tree.
Patch from bug #590448.
Sam Thursfield [Sun, 2 Aug 2009 07:32:47 +0000 (10:32 +0300)]
Fix configure.in to work without --with-gdktarget on non-X11.
Patch from bug #590086.
Ivar Smolin [Sun, 2 Aug 2009 06:39:18 +0000 (09:39 +0300)]
Updating Estonian translation
Leonardo Ferreira Fontenelle [Sun, 2 Aug 2009 04:27:31 +0000 (01:27 -0300)]
Updated Brazilian Portuguese translation.
Kristian Rietveld [Fri, 31 Jul 2009 19:22:54 +0000 (21:22 +0200)]
Add stubs for missing GDK windowing functions to Quartz backend
This seems to more or less fix the build. On Tiger there are still issues
with libresolv missing on the link line, I will figure out what's up with
that soonish.
Yaron Sharabani [Fri, 31 Jul 2009 14:25:36 +0000 (17:25 +0300)]
updated hebrew translation
Stefan Kost [Fri, 31 Jul 2009 10:27:48 +0000 (13:27 +0300)]
docs: don't invent new docbook tags, it is <type> not <typename>
Stefan Kost [Fri, 31 Jul 2009 07:26:34 +0000 (10:26 +0300)]
docs: fix include by adding GtkLabel-links doc to expand_content_files
Kristian Rietveld [Thu, 30 Jul 2009 19:23:47 +0000 (21:23 +0200)]
Bug 586374 – code does not follow documentation
Properly invalidate iterators in iter_next, iter_children,
iter_nth_child and iter_parent when FALSE is returned. ListStore was
actually already mostly in order as the GSequence pointers are very
strictly checked, but to be a little stricter we've added stamp = 0
lines. TreeStore did not invalidate its iterators, so stamp = 0 lines
were added where appropriate. Unit tests have been added to check this.
Fixes bug 586374, reported by Mike Gemunde.
Kristian Rietveld [Thu, 30 Jul 2009 18:22:45 +0000 (20:22 +0200)]
Bug 555109 – selection broken when typeahead active
gtk_tree_view_enter_notify() now "ignores" the synthesized crossing
events. The synthesized crossing events always have (0, 0) as
coordinates, which messes things up. This patch does not fix all issues,
at least it makes the behavior much more reasonable again. Watch bug
555109 for further discussion on the issue.
Kristian Rietveld [Thu, 30 Jul 2009 12:35:09 +0000 (14:35 +0200)]
Bug 573321 – additional check in gtk_tree_model_filter_convert_*
Added checks to see whether the passed iterators are not the same in
convert_child_iter_to_iter() and iter_to_child_iter() functions in both
the sort and filter models.
Fixes bug 573321, suggestion by Vadim Godunko.
Kristian Rietveld [Thu, 30 Jul 2009 12:17:00 +0000 (14:17 +0200)]
Bug 539377 – Unnecessary warnings when GtkTreeView is not realized
Adapt gtk_tree_view_get_path_at_pos() and
gtk_tree_view_get_drag_dest_row() to just return FALSE when bin_window
is NULL and not hit a warning. Makes this case consistent with the tree
view not having a model. Documentation has been updated to clarify
this, unit test has been added.
Fixes bug 539377, based on a patch by Bjorn Lindqvist.
Kristian Rietveld [Thu, 30 Jul 2009 11:58:25 +0000 (13:58 +0200)]
Bug 498010, 546005 - fix assertion in gtk_tree_view_set_cursor_on_cell
Instead of failing with warning on !tree_view->priv->tree, return
silently when tree_view->priv->model is NULL. Clarified in the
documentation that for invalid paths (and every path is invalid when no
model is set), the function will fail silently although the current
cursor will be unset.
Fixes bugs 498010 and 546005.
Kristian Rietveld [Thu, 30 Jul 2009 11:54:30 +0000 (13:54 +0200)]
Start general GtkTreeView unit tests
Includes a test case for bug 546005 to start with, logic provided by
Paul Pogonyshev and Bjorn Lindqvist. In the future, we should maybe
merge treeview-scrolling.c with this one to create one large monolithic
tree view tester.